import Vue from 'vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios';
import viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
import 'amfe-flexible'
import './assets/css/index.css'
import App from './App.vue';
import router from './router'
import store from './store'


Vue.use(ElementUI);
Vue.use(viewer);
viewer.setDefaults({
  Options: { "inline": true, "button": true, "navbar": true, "title": true, "toolbar": true, "tooltip": true, "movable": true, "zoomable": true, "rotatable": true, "scalable": true, "transition": true, "fullscreen": true, "keyboard": true, "url": "data-source" }
});
axios.defaults.timeout = 20000;
// axios.defaults.headers.post['Content-Type'] = 'application/json';
Vue.prototype.$axios = axios;
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')